package com.example.lab.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * (Lost)表实体类
 *
 * @author makejava
 * @since 2022-04-27 19:20:53
 */
@SuppressWarnings("serial")
@TableName("lost")
public class Lost extends Model<Lost> {
    @TableId(value = "Lid" ,type = IdType.AUTO)
    //遗失编号
    private Integer lid;
    //失主
    private String luid;
    //遗失物品
    private String lcontent;
    //遗失房间
    private Integer llid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //遗失上报时间
    private Date ltime;


    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public String getLuid() {
        return luid;
    }

    public void setLuid(String luid) {
        this.luid = luid;
    }

    public String getLcontent() {
        return lcontent;
    }

    public void setLcontent(String lcontent) {
        this.lcontent = lcontent;
    }

    public Integer getLlid() {
        return llid;
    }

    public void setLlid(Integer llid) {
        this.llid = llid;
    }

    public Date getLtime() {
        return ltime;
    }

    public void setLtime(Date ltime) {
        this.ltime = ltime;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.lid;
    }
    }

